package cn.iocoder.yudao.module.nmkj.controller.admin.article.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 文章管理新增/修改 Request VO")
@Data
public class ArticleSaveReqVO {

    @Schema(description = "文章ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "9196")
    private Long id;

    @Schema(description = "文章标图", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "文章标图不能为空")
    private String img;

    @Schema(description = "文章标题", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "文章标题不能为空")
    private String title;

    @Schema(description = "文章时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "文章时间不能为空")
    private LocalDateTime articleTime;

    @Schema(description = "文章简介", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "文章简介不能为空")
    private String content;

    @Schema(description = "绑定文章", requiredMode = Schema.RequiredMode.REQUIRED, example = "14434")
    @NotNull(message = "绑定文章不能为空")
    private Long bindArticleId;

    @Schema(description = "排序权值")
    private Long sort;

    @Schema(description = "文章状态", example = "2")
    private Integer status;

}